package com.ssy.lingxi.order.model.vo.payment.request;

import com.ssy.lingxi.order.handler.annotation.OrderPayTypeAnnotation;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 平台支付参数设置接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-12
 */
public class PaymentParameterPayTypeVO implements Serializable {
    private static final long serialVersionUID = -52564716180139691L;

    /**
     * 支付类型枚举
     */
    @NotNull(message = "支付类型枚举不能为空")
    @OrderPayTypeAnnotation
    private Integer payType;

    /**
     * 支付渠道及参数设置列表
     */
    @Valid
    private List<PaymentParameterChannelVO> channels;

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public List<PaymentParameterChannelVO> getChannels() {
        return channels;
    }

    public void setChannels(List<PaymentParameterChannelVO> channels) {
        this.channels = channels;
    }
}
